<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
	<head>
		<meta charset="utf-8">
		<title><spring:message code="currency.management" />: see all</title>
	</head> 
	<body>
		<header>
		<h1><spring:message code="currencies" /></h1>
			<nav>
				<%@ include file="Currency.jsp" %>
			</nav>
		</header>
		<h2>Current currency</h2>
		<c:forEach var="currency" items="${currencys}">
   			<div>
   				<div><b>Id:</b><c:out value="${currency.id}"/> 
   					<a href="<c:url value="/currency/detail?id=${currency.id}" />">Detail</a> | 
   					<a href="<c:url value="/currency/update?id=${currency.id}" />">Update</a> | 
   					<a href="<c:url value="/currency/delete?id=${currency.id}" />">Delete</a>
   				</div>
   				<p><b>Currency details: </b></p>
   				 <ul>
   				 	<li><b>Name</b> <c:out value="${currency.name}"/></li>
   				 	<li><b>abbreviation</b> <c:out value="${currency.abbreviation}"/></li>
   				 	<li><b>changeeuro</b> <c:out value="${currency.changeeuro}"/></li>
   				 	<li><b>idcountry</b> <c:out value="${currency.idcountry}"/></li>
   				 </ul>
   			</div>
		</c:forEach>
	</body>
</html>